﻿using GN.Pay.TradeChannel.UnionPay.Request;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.TradeChannel.UnionPay
{
    [Serializable]
    public class UnionPayWebPayService : UnionPayServiceBase
    {
        public override string ChannelId
        {
            get
            {
                return "Union.WebPay";
            }
        }


        public override string ChannelName
        {
            get
            {
                return "银联支付";
            }
        }

        public override ChannelType ChannelType
        {
            get
            {
                return ChannelType.Web;
            }
        }



        public override ITradePayApplyResult PayApply(IOrderPayApply order)
        {
            var config = this.channelConfigure;
            var request = new WebPayRequest(this, order, config);
            return request.Build(this, config);
        }
    }
}
